package com.tutu.thymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Program: SpringBoot
 * @Description: 内联表达式
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-11-30 20:32
 **/
@Controller
@RequestMapping("inline")
public class TestController05 {

    @GetMapping("test01")
    public String test01(Model model) {
        model.addAttribute("name","张三");
        model.addAttribute("age",18);
        return "demo09";
    }
}
